﻿@using KPIS.GERP.Models.ICM

@model MasPurchaseType
@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "edit")
{
@Html.HiddenFor(model => model.PcTypeId)
}
@Html.HiddenFor(model => model.RecordStatus)
@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)
<div class="widget-box">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">ข้อมูลประเภทการจัดหา</h4>
    </div>
    <div class="widget-body">
        <div class="widget-body-inner">
			<div class="widget-main">
                <div class="control-group">
                    <div class="control-label">
                        @Html.DisplayName("รายการประเภทจัดหา")
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.PcTypeName, new { disabled = "disabled", @readonly = "readonly" })
                        @Html.ValidationMessageFor(model => model.PcTypeName)
                    </div>            
                </div>
                <div class="control-group">
                    <div class="control-label">
                        @Html.DisplayNameFor(model => model.PcTypeDescr)
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.PcTypeDescr, "TextArea")
                        @Html.ValidationMessageFor(model => model.PcTypeDescr)
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

